package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.BusDepreciationEntity;
import com.j2eefast.bussiness.contract.entity.BusScrapEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>报废管理</p>
 *
 * @author: summer
 * @date: 2021-06-06 17:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface BusScrapMapper extends BaseMapper<BusScrapEntity> {


    public boolean deleteByIds(@Param("ids") Long[] ids);

    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);

    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);

//    /**
//     * 页面查询流程实例分页
//     * @return
//     */
//    Page<BusScrapEntity> findPage(IPage<?> params,
//                                         // @Param("parentId") String parentId,
//                                         @Param("sql_filter") String sql_filter);

    Page<BusScrapEntity> findPage(IPage<?> params,
                                  @Param("useDepartment")String useDepartment,
                                  @Param("equipmentCode")String equipmentCode,
                                  @Param("equipmentName")String equipmentName,
                                  @Param("beginTime")String beginTime,
                                  @Param("endTime")String endTime,
                                  @Param("equipmentName2")String useDepartment2,
                                  @Param("equipmentCode2")String equipmentCode2,
                                  @Param("equipmentModel")String equipmentModel);




    List<BusScrapEntity> findList(IPage<?> params,
                                  @Param("useDepartment")String useDepartment,
                                  @Param("equipmentCode")String equipmentCode,
                                  @Param("equipmentName")String equipmentName,
                                  @Param("startTime")String startTime,
                                  @Param("endTime")String endTime,
                                  @Param("equipmentModel")String equipmentModel);

    BusScrapEntity getbusScrapInfo(@Param("equipmentCode")String equipmentCode);
//
//    List<BusScrapEntity> findList(IPage<?> params,
//            @Param("createBy") Long[] ids,
//            @Param("sql_filter") String sql_filter);

}
